<?php

use Illuminate\Database\Seeder;

class SystemMenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('system_menu')->insert([
            ['pid' => 0, 'title' => '系统管理', 'icon' => 'fa-gears', 'href' => '', 'target' => '_self', 'sort'=>1, 'remark'=>'网站系统管理'],
            ['pid' => 1, 'title' => '菜单管理', 'icon' => 'fa-window-maximize', 'href' => 'menu', 'target' => '_self', 'sort'=>1, 'remark'=>'系统菜单'],
            ['pid' => 0, 'title' => '网站管理', 'icon' => 'fa-window-maximize', 'href' => 'web_set', 'target' => '_self', 'sort'=>1, 'remark'=>'网站管理'],
            ['pid' => 0, 'title' => '内容管理', 'icon' => 'fa-gears', 'href' => 'content', 'target' => '_self', 'sort' => 1, 'remark' => '内容管理' ],
            ['pid' => 1, 'title' => '模型管理', 'icon' => 'fa-navicon', 'href' => 'model', 'target' => '_self', 'sort' => 1, 'remark' => '产品管理' ],
            ['pid' => 1, 'title' => '字段管理', 'icon' => 'fa-window-maximize', 'href' => '', 'target' => '_self', 'sort' => 1, 'remark' => '字段管理' ],
            ['pid' => 5, 'title' => '字段列表', 'icon' => 'fa-align-justify', 'href' => 'model-fields', 'target' => '_self', 'sort' => 1, 'remark' => '字段列表' ],
            ['pid' => 5, 'title' => '新增字段', 'icon' => 'fa-plus-square-o', 'href' => 'model-fields/create', 'target' => '_self', 'sort' => 1, 'remark' => '新增字段' ],
            ['pid' => 4, 'title' => '产品管理', 'icon' => 'fa-gears', 'href' => 'product', 'target' => '_self', 'sort' => 1, 'remark' => '产品管理' ],
            ['pid' => 3, 'title' => '分类管理', 'icon' => 'fa-navicon', 'href' => 'categories', 'target' => '_self', 'sort' => 1, 'remark' => '产品管理' ],
            ['pid' => 4, 'title' => '新闻管理', 'icon' => 'fa-newspaper-o', 'href' => 'news', 'target' => '_self', 'sort' => 1, 'remark' => '新闻管理' ],
            ['pid' => 3, 'title' => '网站留言', 'icon' => 'fa-bell-o', 'href' => 'message', 'target' => '_self', 'sort' => 1, 'remark' => '网站留言' ],
            ['pid' => 3, 'title' => '网站设置', 'icon' => 'fa-cog', 'href' => 'config', 'target' => '_self', 'sort' => 1, 'remark' => '网站设置' ],
            ['pid' => 3, 'title' => '首页设置', 'icon' => 'fa-asterisk', 'href' => 'banner_config', 'target' => '_self', 'sort' => 1, 'remark' => '首页设置' ],
        ]);
    }
}
